package com.edu.chat.web.integration;

import com.edu.chat.web.dto.SearchArticleDTO;
import com.edu.chat.web.dto.SearchDocDTO;
import com.edu.chat.web.model.ArticleEntity;
import com.edu.chat.web.model.DocEntity;


import java.util.List;

public interface MilvusClient {

	//搜索文章相关内容
	List<SearchArticleDTO> search(String content,List<String> libraryId);

	//新增文档数据
	void insertData(List<ArticleEntity> articleList);

	//新增file文档数据
	void insertDocData(List<DocEntity> docList);

	//搜素文件内容
	List<SearchDocDTO> searchFile(String content, List<String> libraryId);

	//删除文件
	void deleteFile(List<String> documentIds);

	//删除文章
	void deleteArticle(List<String> articleIds);

}
